<h1 class="site-h1">接口返回</h1>
<blockquote class="layui-elem-quote">
    所有接口都是统一返回 JSON 字符串格式
</blockquote>

<fieldset class="layui-elem-field layui-field-title site-title">
    <legend><a name="default">返回参数说明</a></legend>
</fieldset>
<table class="layui-table">
    <colgroup>
        <col width="150">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>参数 key</th>
        <th>说明</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>code</td>
        <td>返回成功标志；200：成功、401：失败、403:''</td>
    </tr>
    <tr>
        <td>flag</td>
        <td>返回成功标志；true：成功、false：失败;</td>
    </tr>
    <tr>
        <td>success</td>
        <td>返回成功标志；true：成功、false：失败;</td>
    </tr>

    <tr>
        <td>msg</td>
        <td>返回提示</td>
    </tr>
    <tr>
        <td>MD5</td>
        <td>data数据加密</td>
    </tr>
    <tr>
        <td>alg</td>
        <td>数据加密标志</td>
    </tr>
    <tr>
        <td>data</td>
        <td>返回数据</td>
    </tr>
    <tr>
        <td>errorData</td>
        <td>错误数据</td>
    </tr>
    </tbody>
</table>




<div class="site-title">
    <fieldset class="layui-elem-field layui-field-title site-title">
        <legend><a name="default">正确返回示例</a></legend>
    </fieldset>
</div>
<div class="site-text">
    <p>返回格式:JSON</p>
</div>
<div class="site-text">
    <blockquote class="layui-elem-quote">
        <div class="json-hide" style="display: none">{"code":200,"flag":true,"msg":"保存成功","data":[],"success":true,"errorData":[],"md5":"bf7823b4c63540c484632b2db1b844f1","alg":"SALT_MD5"}</div>
        <pre class="json-show"></pre>
    </blockquote>
</div>


<div class="site-title">
    <fieldset class="layui-elem-field layui-field-title site-title">
        <legend><a name="default">错误返回示例</a></legend>
    </fieldset>
</div>
<div class="site-text">
    <p>返回格式:JSON</p>
</div>
<div class="site-text">
    <blockquote class="layui-elem-quote" style="border-left: 5px solid #2F4056">
        <div class="json-hide" style="display: none">{"code":401,"flag":false,"msg":"公众号未授权","data":[],"success":false,"errorData":[],"md5":"bf7823b4c63540c484632b2db1b844f1","alg":"SALT_MD5"}</div>
        <pre class="json-show"></pre>
    </blockquote>
</div>

